package com.medicalsystem.medical_system;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = "com.medicalsystem")
@EnableJpaRepositories(basePackages = "com.medicalsystem.repository")
@EntityScan(basePackages = "com.medicalsystem.entity") // 添加实体类扫描路径
@EnableScheduling // 启用定时任务

public class MedicalSystemApplication {
	public static void main(String[] args) {
		SpringApplication.run(MedicalSystemApplication.class, args);
	}
}
